<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sam.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sam.examples.html">范例</a></div>
 <div class="up"><a href="book.sam.html">SAM</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sam.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>

  
   <dt id="constant.sam-auto">
    <strong><code>SAM_AUTO</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Automatic behaviour
    </span>
   </dd>

  
  
   <dt id="constant.sam-boolean">
    <strong><code>SAM_BOOLEAN</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Type specifier used when setting properties on SAM_Message objects.
    </span>
   </dd>

  
  
   <dt id="constant.sam-bus">
    <strong><code>SAM_BUS</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect attribute used to set the name of the enterprise service bus to
     connect to.
    </span>
   </dd>

  
  
   <dt id="constant.sam-byte">
    <strong><code>SAM_BYTE</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Type specifier used when setting properties on SAM_Message objects.
    </span>
   </dd>

  
  
   <dt id="constant.sam-bytes">
    <strong><code>SAM_BYTES</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Message body type descriptor.
    </span>
   </dd>

  
  
   <dt id="constant.sam-correlid">
    <strong><code>SAM_CORRELID</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Attribute used on receive, send and remove requests to identify specific
     messages.
    </span>
   </dd>

  
  
   <dt id="constant.sam-deliverymode">
    <strong><code>SAM_DELIVERYMODE</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Message header property.
    </span>
   </dd>

  
  
   <dt id="constant.sam-double">
    <strong><code>SAM_DOUBLE</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Type specifier used when setting properties on SAM_Message objects.
    </span>
   </dd>

  
  
   <dt id="constant.sam-endpoints">
    <strong><code>SAM_ENDPOINTS</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect attribute used to define the possible endpoints to connect to.
    </span>
   </dd>

  
  
   <dt id="constant.sam-float">
    <strong><code>SAM_FLOAT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Type specifier used when setting properties on SAM_Message objects.
    </span>
   </dd>

  
  
   <dt id="constant.sam-host">
    <strong><code>SAM_HOST</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect attribute used to set the hostname of the required messaging
     server.
    </span>
   </dd>

  
  
   <dt id="constant.sam-int">
    <strong><code>SAM_INT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Type specifier used when setting properties on SAM_Message objects.
    </span>
   </dd>

  
  
   <dt id="constant.sam-long">
    <strong><code>SAM_LONG</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Type specifier used when setting properties on SAM_Message objects.
    </span>
   </dd>

  
  
   <dt id="constant.sam-manual">
    <strong><code>SAM_MANUAL</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Manual (script controlled) behaviour
    </span>
   </dd>

  
  
   <dt id="constant.sam-messageid">
    <strong><code>SAM_MESSAGEID</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Attribute used on receive and remove requests to identify specific
     messages.
    </span>
   </dd>

  
  
   <dt id="constant.sam-mqtt">
    <strong><code>SAM_MQTT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect protocol definition for selecting the MQTT (MQ Telemetry Transport) protocol.
    </span>
   </dd>

  
  
   <dt id="constant.sam-mqtt-cleanstart">
    <strong><code>SAM_MQTT_CLEANSTART</code></strong>
     (<span class="type"><a href="language.types.boolean.html" class="type bool">bool</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Optional connect option to indicate to an MQTT server that all previous connection data
     for this client should be removed and that subscriptions should be deleted when the client
     disconnects explicitly or unexpectedly.
    </span>
   </dd>

  
  
   <dt id="constant.sam-non-persistent">
    <strong><code>SAM_NON_PERSISTENT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect attribute value used to request messages are not made persistent
     on the messaging server.
    </span>
   </dd>

  
  
   <dt id="constant.sam-password">
    <strong><code>SAM_PASSWORD</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect attribute used to define the password to be used for the user
     account being used to connect to a messaging server that requires
     authorisation for connections.
    </span>
   </dd>

  
  
   <dt id="constant.sam-persistent">
    <strong><code>SAM_PERSISTENT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect attribute value used to request messages are made persistent
     on the messaging server to protect against loss of messages in the
     event of failure.
    </span>
   </dd>

  
  
   <dt id="constant.sam-port">
    <strong><code>SAM_PORT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect attribute used to set the port number on which to communicate
     with the messaging server.
    </span>
   </dd>

  
  
   <dt id="constant.sam-priority">
    <strong><code>SAM_PRIORITY</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Option name used on send requests to specify a delivery priority value.
    </span>
   </dd>

  
  
   <dt id="constant.sam-reply-to">
    <strong><code>SAM_REPLY_TO</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Message property used to specify the queue identity on to which the 
     script expects response or reply messages to be posted.
    </span>
   </dd>

  
  
   <dt id="constant.sam-rtt">
    <strong><code>SAM_RTT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect protocol definition for selecting the IBM Realtime Transport
     protocol for communication with a business integration messaging server.
    </span>
   </dd>

  
  
   <dt id="constant.sam-string">
    <strong><code>SAM_STRING</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Type specifier used when setting properties on SAM_Message objects.
    </span>
   </dd>

  
  
   <dt id="constant.sam-targetchain">
    <strong><code>SAM_TARGETCHAIN</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connection attribute used to set the required target chain identifier.
    </span>
   </dd>

  
  
   <dt id="constant.sam-text">
    <strong><code>SAM_TEXT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Message body type descriptor.
    </span>
   </dd>

  
  
   <dt id="constant.sam-timetolive">
    <strong><code>SAM_TIMETOLIVE</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Message send option name used to specify the length of time a message
     should be retained in milliseconds.
    </span>
   </dd>

  
  
   <dt id="constant.sam-transactions">
    <strong><code>SAM_TRANSACTIONS</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connection attribute used to set required transactional behaviour. May
     be set to SAM_AUTO (default) or SAM_MANUAL.
    </span>
   </dd>

  
  
   <dt id="constant.sam-userid">
    <strong><code>SAM_USERID</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect attribute used to define the account to being used to
     connect to a messaging server that requires authorisation for connections.
    </span>
   </dd>

  
  
   <dt id="constant.sam-wait">
    <strong><code>SAM_WAIT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Receive property used to specify the wait timeout to be used when
     receiving a message from a queue or subscription.
    </span>
   </dd>

  
  
   <dt id="constant.sam-wmq">
    <strong><code>SAM_WMQ</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect protocol definition for selecting the IBM WebSphere MQSeries
     protocol for communication with the desired messaging server.
    </span>
   </dd>

  
  
   <dt id="constant.sam-wmq-bindings">
    <strong><code>SAM_WMQ_BINDINGS</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect protocol definition for selecting the IBM WebSphere MQSeries
     protocol for communication with a local messaging server.
    </span>
   </dd>

  
  
   <dt id="constant.sam-wmq-client">
    <strong><code>SAM_WMQ_CLIENT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect protocol definition for selecting the IBM WebSphere MQSeries
     protocol for communication with a remote messaging server.
    </span>
   </dd>

  
  
   <dt id="constant.sam-wmq-target-client">
    <strong><code>SAM_WMQ_TARGET_CLIENT</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Option name used on send requests to specify the target client mode. 
     This can either be default to &#039;jms&#039; or &#039;mq&#039;. The default is &#039;jms&#039; which
     means an RFH2 header is sent with the message whereas the &#039;mq&#039; setting
     means no RFH2 is included.
    </span>
   </dd>

  
  
   <dt id="constant.sam-wpm">
    <strong><code>SAM_WPM</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connect protocol definition for selecting the IBM WebSphere Platform
     Messaging protocol for communication with a WebSphere Application Server
     messaging server.
    </span>
   </dd>

  
 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sam.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sam.examples.html">范例</a></div>
 <div class="up"><a href="book.sam.html">SAM</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
